//
//  HMDiscoverTableViewController.m
//  swift-新浪微博OC版-8-29
//
//  Created by 赵玉忠 on 16/8/29.
//  Copyright © 2016年 itcast. All rights reserved.
//

#import "HMDiscoverTableViewController.h"
#import "HMDiscoverSearchView.h"
#import "HMVisitorView.h"
@interface HMDiscoverTableViewController ()

@end

@implementation HMDiscoverTableViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    if (self.userLogin == NO) {
        [(HMVisitorView *)self.view setVisitorViewInfo:@"visitordiscover_image_message" andWith:@"登录后，最新、最热微博尽在掌握，不再会与实事潮流擦肩而过"];
        return;
    }
    [self setupUI];
}

-(void)setupUI{
    HMDiscoverSearchView *view = [HMDiscoverSearchView searchView];
    view.frame = CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, 30);
    self.navigationItem.titleView = view;
}

@end
